// Author: wsfuyibing <682805@qq.com>
// Date: 2025-06-12

package responses

import (
	"server/app/http/models"
	"server/app/kind"
)

// ArcadePondResponse
// 鱼塘信息.
type ArcadePondResponse struct {
	Id          int64
	ArcadeId    kind.ArcadeId
	Enabled     kind.Enabled
	EnabledFlag string
	EnabledText string
	EnabledYes  bool
	Kind        kind.PondKind
	KindText    string
	Area        float64
	Depth       float64
	Seat        kind.PondSeat
	SeatText    string
	SeatCount   int
	SeatTotal   int
	Name        string
}

// With
// 数据绑定.
func (o *ArcadePondResponse) With(m *models.ArcadePond) *ArcadePondResponse {
	o.Id = m.Id
	o.Enabled = m.Enabled
	o.EnabledFlag = m.Enabled.Flag()
	o.EnabledText = m.Enabled.Text()
	o.EnabledYes = m.Enabled.IsYes()
	o.Kind = m.Kind
	o.KindText = m.Kind.Text()
	o.Area = m.Area
	o.Depth = m.Depth
	o.Seat = m.Seat
	o.SeatText = m.Seat.Text()
	o.SeatCount = m.SeatCount
	o.SeatTotal = m.SeatTotal
	o.Name = m.Name
	return o
}
